package g.beny.framework.web;

/**
 * ajax请求返回结果
* @ClassName
*	Result
* @Description
*	TODO
* @author 
*	gson
* @date 
*	2012-8-25 下午4:00:51
*
 */
public class Result {
	private Boolean status  = true;
	private Object data;
	private String msg;
	
	public Result() {
	}
	
	/**
	 * 返回结果
	 * @param status 状态
	 * @param data   数据
	 * @param msg    消息
	 */
	public Result(Boolean status, Object data, String msg) {
		this.status = status;
		this.data = data;
		this.msg = msg;
	}
	
	/**
	 * 返回结果
	 * @param msg消息
	 */
	public Result(String msg) {
		this.msg = msg;
	}

	/**
	 * 返回结果
	 * @param status 状态
	 * @param msg 消息
	 */
	public Result(Boolean status, String msg) {
		this.status = status;
		this.msg = msg;
	}

	public Boolean getStatus() {
		return status;
	}
	public void setStatus(Boolean status) {
		this.status = status;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
}
